import color from '../tools/color'


if(module) module.exports = { time, timeEnd, compile, compileEnd } 
export default { time, timeEnd, compile, compileEnd }


export function time(data=""){
    console.time(color("背景色为黑色null",color("绿色","DONE "))+color("背景色为黑色null",color("青色s",`Compiled successfully in... ${data}`)));
}

export function timeEnd(data:string = ""){
    // global.clear();
    console.timeEnd(color("背景色为黑色null",color("绿色","DONE "))+color("背景色为黑色null",color("青色s",`Compiled successfully in... ${data}`)));
    console.log();
}

export function compile(data:string = ""){
    console.log(color("绿色","CONDUCT "),` Compilation... ${data}`)
}

export function compileEnd(data:string = ""){
    console.log(color("绿色","CONDUCT "),` Compiled successfully in... `)
}